package com.hqd.ch03.test.event;


import com.hqd.ch03.v14.listener.BeanFactoryListener;

public class MailTaskFinishListener implements BeanFactoryListener<TaskFinishEvent> {

    private String email = "harvey@163.com";

    @Override
    public void onEvent(TaskFinishEvent event) {
        System.out.println("Send Email to " + email + " Task:" + event.getSource());
    }
}